package com.ygbhu.design.single;

/**
 * @program: design-pattern
 * @description: 静态内部
 * @author: smzhu3
 * @create: 2021-06-16 10:50
 **/
public class Singleton {
    private static class LazyHolder {
        private static final Singleton INSTANCE = new Singleton();
    }
    private Singleton (){}
    public static Singleton getInstance() {
        return LazyHolder.INSTANCE;
    }
}
